/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hitechbangla.fctu.form;

/**
 *
 * @author Asus
 */
public class CreateForm extends javax.swing.JInternalFrame {

    /**
     * Creates new form CreateForm
     */
    public CreateForm() {
        super("Create Type", true, true, true, true);
	initComponents();
        jButtonWind.setVisible(false);
        jButtonGBAD.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButtonAircraftType = new javax.swing.JButton();
        jButtonRadar = new javax.swing.JButton();
        jButtonWind = new javax.swing.JButton();
        jButtonGBAD = new javax.swing.JButton();
        jButtonBase = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jButtonAircraftType.setText("Aircraft Type");
        jButtonAircraftType.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAircraftTypeActionPerformed(evt);
            }
        });

        jButtonRadar.setText("Radar Type");
        jButtonRadar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonRadarActionPerformed(evt);
            }
        });

        jButtonWind.setText("Wind");
        jButtonWind.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonWindActionPerformed(evt);
            }
        });

        jButtonGBAD.setText("GBAD");
        jButtonGBAD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGBADActionPerformed(evt);
            }
        });

        jButtonBase.setText("Base");
        jButtonBase.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBaseActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jButtonBase, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonAircraftType))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonRadar)
                            .addComponent(jButtonGBAD, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(57, 57, 57)
                        .addComponent(jButtonWind, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(53, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAircraftType)
                    .addComponent(jButtonRadar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonBase)
                    .addComponent(jButtonGBAD))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonWind)
                .addContainerGap(54, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAircraftTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAircraftTypeActionPerformed
        AddAircraftType addAircraftType = new AddAircraftType(null);
	addAircraftType.setVisible(true);
    }//GEN-LAST:event_jButtonAircraftTypeActionPerformed

    private void jButtonRadarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRadarActionPerformed
        AddRadarType addRadarType = new AddRadarType(null);
	addRadarType.setVisible(true);
    }//GEN-LAST:event_jButtonRadarActionPerformed

    private void jButtonBaseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBaseActionPerformed
        AddBaseType addBaseType = new AddBaseType(null);
	addBaseType.setVisible(true);
    }//GEN-LAST:event_jButtonBaseActionPerformed

    private void jButtonWindActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonWindActionPerformed
        //this.setVisible(false);
    }//GEN-LAST:event_jButtonWindActionPerformed

    private void jButtonGBADActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGBADActionPerformed
       // this.setVisible(false);
    }//GEN-LAST:event_jButtonGBADActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
	/* Set the Nimbus look and feel */
	//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
	 * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
	 */
	try {
	    for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
		if ("Nimbus".equals(info.getName())) {
		    javax.swing.UIManager.setLookAndFeel(info.getClassName());
		    break;
		}
	    }
	} catch (ClassNotFoundException ex) {
	    java.util.logging.Logger.getLogger(CreateForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
	} catch (InstantiationException ex) {
	    java.util.logging.Logger.getLogger(CreateForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
	} catch (IllegalAccessException ex) {
	    java.util.logging.Logger.getLogger(CreateForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
	} catch (javax.swing.UnsupportedLookAndFeelException ex) {
	    java.util.logging.Logger.getLogger(CreateForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
	}
	//</editor-fold>

	/* Create and display the form */
	java.awt.EventQueue.invokeLater(new Runnable() {
	    public void run() {
		new CreateForm().setVisible(true);
	    }
	});
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAircraftType;
    private javax.swing.JButton jButtonBase;
    private javax.swing.JButton jButtonGBAD;
    private javax.swing.JButton jButtonRadar;
    private javax.swing.JButton jButtonWind;
    // End of variables declaration//GEN-END:variables
}
